import {request} from '@/utils/request'

export function queryMobilePageConfig<T>(data?: T) {
    return request({
        url: 'product/queryMobilePageConfig',
        method: 'POST',
        data
    })
}

// 获取后台配置接口
export const styleSettingContent = <T>(data?:T) => {
    return request({
        url:"common/content/get",
        method:"POST",
        data,
        isFormData:true
    });
};


// 登录接口
export const byCodeLogin = <T>(data?:T) => {
    return request({
        url:"auth/wx/login/byCode",
        method:"POST",
        data,
        isFormData:true
    });
};

// 账号和密码进行绑定
export const bindAccount = <T>(data?:T) => {
    return request({
        url:"auth/wx/bind/byUserNo",
        method:"POST",
        data,
        isFormData:true
    });
};

// 账号解绑
export const unBindAccount = <T>(data?:T) => {
    return request({
        url:"app/my/account/unbind",
        method:"POST",
        data,
        isFormData:true
    });
};

// 字典接口
export const commonWordList = <T>(data?:T) => {
    return request({
        url:"common/dict/get",
        method:"POST",
        data,
        isFormData:true
    });
};

// 导航标签获取
export const guideLabelList =  <T>(data?:T) => {
    return request({
        url:"merchant/tkt/client/guide",
        method:"POST",
        data,
    });
};

// getPhoneNumber 解析上传手机号
export const decodeMobileCode =  <T>(data?:T) => {
    return request({
        url:"auth/wx/bind/byCode",
        method:"POST",
        data,
        isFormData:true
    });
};

// 查询准确位置
export const queryDetailAddress =  <T>(data?:T) => {
    return request({
        url:"merchant/index/getAreaCode",
        method:"POST",
        data,
    });
};

// 发现页列表
export const discoverList  =  <T>(data?:T) => {
    return request({
        url:"app/state/client/discover/list",
        method:"POST",
        data,
    });
};


